package cn.rongdao.jrkabao.model.takephoto;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.takephoto.ValidateIDCardInfoByYiTuBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/5
 */

public class IdCardNameAndNumberFromYiTuModel extends BaseSuDaiModel {

    public static IdCardNameAndNumberFromYiTuModel getInstance() {
        return getPresent(IdCardNameAndNumberFromYiTuModel.class);
    }

    public void execute(Observer<ValidateIDCardInfoByYiTuBean> observer) {
        Observable<ValidateIDCardInfoByYiTuBean> observable = mServletApi.getIdCardNameAndNumberFromYiTu(mParams).map(new HttpFunction<ValidateIDCardInfoByYiTuBean>());
        toSubscribe(observable, observer);
    }
}